Release 10.1A: OpenEdge Development:
Programming Interfaces
Methods and attributes
To use the XML read and write features described in this chapter, you use the handle to a temp-table, temp-table buffer, or ProDataSet to access methods and attributes of the object. Table 22–1 describes the available methods.
The XML related attributes are described in Table 22–2.
NAMESPACE-URIandNAMESPACE-PREFIXinteract in aWRITE-XMLmethod call in the following ways:
- If
NAMESPACE-URIis specified andNAMESPACE-PREFIXis not, theWRITE-XMLmethod writes the XML document using a default namespace (xmlns="namespaceUri"). For example:
This example produces XML like this:
- If both
NAMESPACE-URIandNAMESPACE-PREFIXare specified, all elements in the XML document will start with theNAMESPACE-PREFIX. For example,:
This example produces XML like this:
- If
NAMESPACE-PREFIXis specified andNAMESPACE-URIis not, theWRITE-XMLmethod will ignore the prefix and write the document with no namespace information. TheWRITE-XML methodbehaves as if neitherNAMESPACE-URInorNAMESPACE-PREFIXis specified. For example:
This example produces XML like this:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |